package cn.dapeng.retry.t02;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(value = {ElementType.METHOD})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface Retry {

    int executeTime() default 3;

    Class<? extends Exception> exception();

    int delaySeconds() default 5;

}
